//package com.poi.java.controller;
//
//
//import com.fasterxml.jackson.databind.util.BeanUtil;
//import com.poi.java.pojo.LandProject;
//import com.poi.java.util.ExcelUtils;
//import com.sample.LandMaterial;
//import org.springframework.beans.BeanUtils;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import java.util.List;
//
//@RestController
//@RequestMapping("/word")
//public class ImportController {
//
//    @RequestMapping("/import")
//    public Object import1(MultipartFile file) throws Exception {
//        List<LandProject> landProjects = ExcelUtils.readMultipartFile(file, LandProject.class);
//        for (LandProject landProject : landProjects) {
//            System.out.println(landProject.toString());
//            LandMaterial landMaterial = new LandMaterial();
//            BeanUtils.copyProperties(landProject,landMaterial);
//        }
//        return null;
//    }
//}
